console.log('ok')
import Vue from 'vue';
import app from './App.vue';

//1.1导入路由的包
import VueRouter from 'vue-router'
//1.2安装路由
Vue.use(VueRouter);
//1.3导入自定义路由模块
import router from './router.js'
//导入mui
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'
//按需导入Mint-UI中的组件
import {Header,Swipe,SwipeItem} from 'mint-ui';
Vue.component(Header.name,Header);
Vue.component(Swipe.name,Swipe);
Vue.component(SwipeItem.name,SwipeItem);

//导入Vue-resource
import VueResource from 'vue-resource'
Vue.use(VueResource);
var vm =new Vue({
    el:"#app",
    render:c=>c(app),
    router,
});